﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvantGameMachine.Clients;
using AvantGameMachine.Graphics;

namespace AvantGameMachine.Menu
{
    internal class MenuClientData
    {
        private List<string> data = new List<string>();
        private Texture icon = null;

        internal MenuClientData(PreloadedClient _client)
        {
            data.Add(_client.CompleteName);
            data.Add("(" + _client.ShortName + ")");
            for (int i = 0; i < _client.Description.Count && i <2; i++)
            {
                data.Add(_client.Description[i]);
            }

            if (_client.Description.Count > 2)
            {
                data[3] += "...";
            }

            icon = _client.Icon;
        }

        internal int GetNumLines()
        {
            return data.Count;
        }

        internal string GetLine(int _index)
        {
            return data[_index];
        }

        internal Texture Icon
        {
            get { return icon; }
        }
    }
}
